package com.hgkj.cloud.base.dao;

import com.hgkj.cloud.base.domain.TenantUsers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TenantUsersMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TenantUsers record);

    int insertSelective(TenantUsers record);

    TenantUsers selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TenantUsers record);

    int updateByPrimaryKey(TenantUsers record);

    /* 获取用户信息 */
    TenantUsers getUserInfo(Map<String, Object> map);

    /* 查询用户列表 */
    List<TenantUsers> listUsers(Map<String, Object> map);

    /* 查询用户列表总数 */
    Long listUsersCount(Map<String, Object> map);

    int updateUserType(Map<String, Object> map);

    /* 问卷任务用户列表 */
    List<TenantUsers> listQnTaskUsers(Map<String, Object> map);

    /* 问卷任务用户列表总数 */
    long listQnTaskUsersCount(Map<String, Object> map);

    /* 测评任务用户列表 */
    List<TenantUsers> listTableTaskUsers(Map<String, Object> map);

    /* 测评任务用户列表总数 */
    long listTableTaskUsersCount(Map<String, Object> map);

    //base begin
    /*获取全部用户信息*/
    List<Long> getAllUserInfo();
    TenantUsers getUserById(@Param("userId") String userId);
    int deleteUserCreateDate();
    //base end

    //获取用户积分信息
    Map getUserIntegral(@Param("userUuid") String userUuid);
}